package com.monkey.luffer.design.pattern.strategy.Algorithm;

import com.monkey.luffer.design.pattern.strategy.Order;
import org.springframework.stereotype.Component;

/**
 * @Author dengkaibing
 * @Date 2022/10/10 17:12
 * @Desc
 */
@Order(order = 100)
@Component
public class AddStrategy implements AlgorithmStrategy {
    @Override
    public Object invoke(Object o) {
        System.out.println("这是加法");
        return null;
    }

    @Override
    public boolean isAlgorithmStrategy() {
        return true;
    }
}
